package ru.niir.goodfil.excel.impl;

import org.apache.poi.ss.usermodel.Cell;
import ru.niir.goodfil.excel.client.CellRenderer;
import ru.niir.goodfil.excel.client.ColumnModel;

public class DefaultTextCellRenderer implements CellRenderer {
    public void render(Cell cell, Object object, ColumnModel columnModel) {
        if (object == null) {
            cell.setCellValue("");
        } else {
            cell.setCellValue(object.toString());
        }
    }
}
